//
//  LGDiscoverViewController.swift
//  01-Weibo项目练习-1
//
//  Created by 李李刚 on 16/3/2.
//  Copyright © 2016年 李李刚. All rights reserved.
//

import UIKit

class LGDiscoverViewController: LGVisaViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        
        if isLogon {
            
            
        }else{
            
            self.baseView.setpageinfo("visitordiscover_image_message", message: "登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过")
            
            return
        }
        
        
        
        setupUI()

    }
    
    func setupUI(){
        
        let searchView = NSBundle.mainBundle().loadNibNamed("LGDiscoverSearchView", owner: nil, options: nil).last as!LGDiscoverSearchView
        
        
        searchView.frame.size = CGSizeMake(UIScreen.mainScreen().bounds.size.width, 44)
        
        self.navigationItem.titleView = searchView
        
    }

    //监听文本框的选中事件
    



}
